package FirstExam10tasks;

public class Task4 {

	public static void main(String[] args)
	{
		int[] arr = {1,2,3,4,5,6,11,7,8,9,0};
		
		
		printTheMaxSum(arr);
		
	}
	
	static void  printTheMaxSum (int[] arr)
	{
		boolean flag = true;		
		
		for(int i = 0; i < arr.length; i++)
		{
			
			for(int j = arr.length - 1; j > i; j--)
			{				
				if(arr[i] == arr[j])
				{
					flag = false;
				}
			}
			if(flag == false)
			{
				break;
			}
		}
		
		
			System.out.println(flag);
		
	}	
}


